package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.DataItems;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IDataItemsService {

    void save(DataItems entity);

    void update(DataItems entity);

    void delete(Long id);

    List<DataItems> list();

    DataItems get(Long id);
    /**
     * 分页查询
     * @param qo 分页参数
     * @return
     */
    PageResult query(QueryObject qo);

    List<DataItems> queryItemsBySn(String sn);

    String queryItemsByName(String name);
}
